/*
 *  (C) Copyright 2007 Insula Tecnologia da Informacao Ltda.
 * 
 *  This file is part of Jazz.
 *
 *  Jazz is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Jazz is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Jazz.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.openinsula.jazz;

import org.openinsula.jazz.aop.ValueBindingAdvice;
import org.openinsula.jazz.binding.BindingAnnotationBeanPostProcessor;
import org.openinsula.jazz.stereotype.Binding;
import org.openinsula.jazz.stereotype.Action;

/**
 * This is the central interface in Jazz's binding infrastructure. Applications
 * can use this directly, but it is not primarily meant as API: Typically,
 * applications will use binding annotations ({@link Binding} and
 * {@link Action}) and AOP facilities.
 * 
 * <p>
 * The default implementation of this strategy interface is
 * {@link DefaultBindingManager}, which can serve as an implementation guide
 * for other binding strategies.
 * 
 * @author Edson Yanaga
 * @since 1.0
 * @see DefaultBindingManager
 * @see ValueBindingAdvice
 * @see Binding
 * @see Action
 * @see BindingAnnotationBeanPostProcessor
 */
public interface BindingManager {

	/**
	 * This method should copy the binded properties of the view to the
	 * respective properties of the model (<code>view to model</code>).
	 */
	public void bindViewToModel();

	/**
	 * This method should copy the binded properties of the model to the
	 * respective properties of the view (<code>model to view</code>).
	 */
	public void bindModelToView();

}
